package com.aaa.hospital.nurse.service.Impl;

import com.aaa.hospital.nurse.mapper.SickroomMapper;
import com.aaa.hospital.nurse.pojo.Sickroom;
import com.aaa.hospital.nurse.service.SickroomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SickroomServiceImpl implements SickroomService {
    @Autowired
    private SickroomMapper mapper;

    @Override
    public List<Sickroom> selectAll() {
        return mapper.selectAll();
    }

    @Override
    public List<Sickroom> selectById(int id) {
        return mapper.selectById(id);
    }
}
